import Mock from 'mockjs'

Mock.mock(`${window.$mockApi}/Notice/Create`, "post", () => {
  let back = {}
  back = {"result":null,"targetUrl":null,"success":true,"error":null}
  return back
})

Mock.mock(`${window.$mockApi}/Notice/GetPagedList`, "post", () => {
    let back = {}
    back = {
        "result":{
            "totalCount":18,
            "items":[
                {"coverImage":"https://m1-1253159997.image.myqcloud.com/imageDir/a7ea9de31f9783b9a448d4aa1aeb8034u5.jpg","title":"中国075两栖攻击舰举行下水仪式 排水量4万吨仅中美能造","intro":"25日，异军突起的075大型两栖攻击舰在上海举行下水仪式。 军事专家对《环球时报》记者表示，075型两栖攻击舰的下水，标志着中国海军水面舰艇的发展进入新时代。","content":"中央电视台“国防军事”频道25日早间报道称，中国海军两栖攻击舰下水仪式将在上海举行，该舰是中国自行研制的首型两栖攻击舰，具有较强的两栖作战和执行多样化任务的能力。","isTop":true,"creationTime":"2019-09-25 16:10:03","bookmaker":"admin","id":1001},
                {"coverImage":"https://m1-1253159997.image.myqcloud.com/imageDir/a7ea9de31f9783b9a448d4aa1aeb8034u5.jpg","title":"排水量4万吨仅中美能造","intro":"标志着中国海军水面舰艇的发展进入新时代。","content":"具有较强的两栖作战和执行多样化任务的能力。","isTop":true,"creationTime":"2019-10-25 16:10:03","bookmaker":"admin","id":1002}
            ]
        },
        "targetUrl":null,
        "success":true,
        "error":null
    }
    return back
})

Mock.mock(`${window.$mockApi}/Notice/Get`, "post", () => {
  let back = {}
  back = {
      "result":{"coverImage":"https://m1-1253159997.image.myqcloud.com/imageDir/a7ea9de31f9783b9a448d4aa1aeb8034u5.jpg","title":"中国075两栖攻击舰举行下水仪式 排水量4万吨仅中美能造","intro":"25日，异军突起的075大型两栖攻击舰在上海举行下水仪式。 军事专家对《环球时报》记者表示，075型两栖攻击舰的下水，标志着中国海军水面舰艇的发展进入新时代。","content":Math.random().toString(),"isTop":true,"creationTime":"2019-09-25 16:10:03","bookmaker":"admin","id":1001},
      "targetUrl":null,
      "success":true,
      "error":null
  }
  return back
})

Mock.mock(`${window.$mockApi}/Notice/Update`, "post", () => {
  let back = {}
  back = {"result":null,"targetUrl":null,"success":true,"error":null}
  return back
})

Mock.mock(`${window.$mockApi}/Notice/Delete`, "post", () => {
  let back = {}
  back = {"result":null,"targetUrl":null,"success":true,"error":null}
  return back
})

Mock.mock(`${window.$mockApi}/Notice/Deletes`, "post", () => {
  let back = {}
  back = {"result":null,"targetUrl":null,"success":true,"error":null}
  return back
})

export default Mock
